// src/router.js
import { createRouter, createWebHistory } from 'vue-router';
import RegisterPage from './components/Register.vue';
import LoginPage from './components/Login.vue';
import HomePage from './components/HomePage.vue';
import StudentCheckIn from './components/StudentCheckIn.vue';
import TeacherView from './components/TeacherView.vue';

const routes = [
  { path: '/', component: LoginPage },
  { path: '/register', component: RegisterPage },
  { path: '/login', component: LoginPage },
  { path: '/home', component: HomePage },
  { path: '/student', component: StudentCheckIn },
  { path: '/teacher', component: TeacherView }
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;